﻿@model DeJC.DAL.Model.GeneralMiscType

@{
    ViewBag.Title = "GtEdit";
    Layout = "~/Views/Shared/_LayoutConfig.cshtml";
}

<h2>GtEdit</h2>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(m=>m.ID)
    @Html.HiddenFor(m => m.ParentID)
    @Html.HiddenFor(m => m.CreatedBy)
    @Html.HiddenFor(m => m.CreationDate)
    @Html.HiddenFor(m => m.Deleted)
    @Html.HiddenFor(m => m.DeletedDate)
    
    <fieldset>
        <legend>GeneralMiscType</legend>
        <div class="form-style">
            <ul>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Name)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Description)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Order)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Order)
                        @Html.ValidationMessageFor(model => model.Order)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Enabled)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Enabled)
                        @Html.ValidationMessageFor(model => model.Enabled)
                    </div>
                </li>
            </ul>
            <hr/>
        </div>



        <p>
            <input type="submit" value="Create" />
            @Html.ActionLink("Back to List", "GtList", new { pId=Model.ParentID })
        </p>
    </fieldset>
}